#include <stdio.h>

int main()
{
	int n;
	scanf("%d", &n);
	unsigned mask = 1u << 31;
	for (; mask; mask >>= 1) {
		printf("%d", n & mask ? 1 : 0);
	}
	return 0;
}